package com.zju.DoctorGo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zju.DoctorGo.entity.Patient;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface PatientMapper extends BaseMapper<Patient> {
    @Update("UPDATE patient SET name = #{name}, age = #{age}, gender = #{gender} WHERE userId = #{userId}")
    void update(Patient patient);

//    @Select("SELECT * FROM patient WHERE userId = #{userId}")
}